package com.loong.system.controller.forehead;

import com.loong.common.domain.BaseQuery;
import com.loong.common.mvc.BaseForeheadController;
import com.loong.common.rest.Result;
import com.loong.system.handler.SystemFeedbackTypeHandler;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description: 处理前台反馈类型相关请求的controller
 * @Author: LiuQun
 * @Date: 2021/1/4 16:01
 */
@RestController
@RequestMapping("forehead/system/feedbackType")
public class SystemFeedbackTypeForeheadController extends BaseForeheadController {

    @Resource
    private SystemFeedbackTypeHandler feedbackTypeHandler;

    /**
     * 分页查询反馈类型
     * @param query 查询参数
     * @return 响应的结果
     */
    @PostMapping("pageQuery/feedbackTypeList")
    public Result pageQueryFeedbackType(@RequestBody BaseQuery query){
        return handlerExecutor.execute(() -> feedbackTypeHandler.foreheadPageQueryFeedbackType(query));
    }
}
